
#ifndef PLAYSTATE_H
#define PLAYSTATE_H

#include <SDL/SDL.h>
#include "gamestate.h"

class CPlayState : public CGameState
{
    SDL_Surface* player;
    SDL_Surface* bg;
    SDL_Surface* tile;
    SDL_Rect dstrect;
    int map[5][256][256];
    int ppx, ppy;
    int mx, my, px, py;
    int msx[5], msy[5], mn, mnn;
    SDL_Rect maprend[5][256][256];

public:
    CPlayState() { }
    void Init();
    void Cleanup();

    void Pause();
    void Resume();

    void HandleEvents(CGameEngine* game);
    void Update(CGameEngine* game);
    void Draw(CGameEngine* game);

};

#endif
